import { createApp } from "vue";
import App from "./App.vue";
import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";
import "./index.css";

const app = createApp(App);
const wsProtocol = import.meta.env.VITE_APP_WS_Protocol;

const baseUrl = import.meta.env.VITE_APP_BASE_API;

app.config.globalProperties.$wsUrl = `${wsProtocol}://${baseUrl}/api`;

app.use(Antd).mount("#app");
